package com.jn.rxjava.service;

import com.jn.rxjava.gson.ApiService;
import com.jn.rxjava.model.WeatherResponse;

import io.reactivex.rxjava3.core.Observable;

public class WeatherRepository {
    private ApiService apiService;

    public WeatherRepository() {
        this.apiService = RetrofitClient.getApiService();
    }

    public Observable<WeatherResponse> getWeatherInfo(String cityName) {
        return apiService.getWeatherInfo(cityName);
    }
}